chore: More logs for client#263
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: re2zero The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideThis PR systematically instruments the client codebase with detailed qCDebug and qCWarning statements to trace lifecycle events, user interactions, and data operations, improving observability across UI dialogs, view components, data managers, and custom widgets. Class diagram for view components with added loggingclassDiagram
class CAllDayEventWeekView {
+setTheMe(int type)
+changeEvent(QEvent *event)
+MeetCreationConditions(const QDateTime &date)
+slotCreate(const QDateTime &date)
+IsEqualtime(const QDateTime &timeFirst, const QDateTime &timeSecond)
+JudgeIsCreate(const QPointF &pos)
+RightClickToCreate(QGraphicsItem *listItem, const QPoint &pos)
+MoveInfoProcess(DSchedule::Ptr &info, const QPointF &pos)
+getDragScheduleInfoBeginTime(const QDateTime &moveDateTime)
+getDragScheduleInfoEndTime(const QDateTime &moveDateTime)
+updateHeight()
+setSelectSearchSchedule(const DSchedule::Ptr &info)
+setMargins(int left, int top, int right, int bottom)
+updateInfo()
+upDateInfoShow(const DragStatus &status, const DSchedule::Ptr &info)
+CAllDayEventWeekView(QWidget *parent, ViewPosition type)
+~CAllDayEventWeekView()
+setDayData(const QVector<DSchedule::List> &vlistData)
+setInfo(const DSchedule::List &info)
+slotDoubleEvent()
+mouseDoubleClickEvent(QMouseEvent *event)
+wheelEvent(QWheelEvent *event)
+updateDateShow()
+createItemWidget(int index, bool average)
+slotStateChange(bool bState)
+updateItemHeightByFontSize()
+getPosInItem(const QPoint &scenePos, const QRectF &itemRect)
+getPosDate(const QPoint &p)
+slotUpdateScene()
}
class CMonthGraphicsview {
+CMonthGraphicsview(QWidget *parent)
+~CMonthGraphicsview()
+setTheMe(int type)
+setDate(const QVector<QDate> &showDate)
+setSelectSearchSchedule(const DSchedule::Ptr &scheduleInfo)
+updateSize()
+updateLunar()
+updateInfo()
+getItemPos(const QPoint &p, const QRectF &itemRect)
+getPosInItem(const QPoint &p, const QRectF &itemRect)
+getPosDate(const QPoint &p)
+upDateInfoShow(const DragStatus &status, const DSchedule::Ptr &info)
+slideEvent(QPointF &startPoint, QPointF &stopPort)
+mouseDoubleClickEvent(QMouseEvent *event)
+resizeEvent(QResizeEvent *event)
+changeEvent(QEvent *event)
+wheelEvent(QWheelEvent *e)
+updateBackgroundShowItem()
+setSceneCurrentItemFocus(const QDate &focusDate)
+setDragPixmap(QDrag *drag, DragInfoItem *item)
+MeetCreationConditions(const QDateTime &date)
+IsEqualtime(const QDateTime &timeFirst, const QDateTime &timeSecond)
+JudgeIsCreate(const QPointF &pos)
+RightClickToCreate(QGraphicsItem *listItem, const QPoint &pos)
+MoveInfoProcess(DSchedule::Ptr &info, const QPointF &pos)
+getDragScheduleInfoBeginTime(const QDateTime &moveDateTime)
+getDragScheduleInfoEndTime(const QDateTime &moveDateTime)
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Note
详情{
"calendar-client/src/widget/calendarmainwindow.cpp": [
{
"line": " url = \"https://www.deepin.org/zh/agreement/privacy/\";",
"line_number": 988,
"rule": "S35",
"reason": "Url link | 20e2eab189"
},
{
"line": " url = \"https://www.uniontech.com/agreement/privacy-cn\";",
"line_number": 990,
"rule": "S35",
"reason": "Url link | 4850a00dd7"
},
{
"line": " url = \"https://www.deepin.org/en/agreement/privacy/\";",
"line_number": 994,
"rule": "S35",
"reason": "Url link | 38d42f63bf"
},
{
"line": " url = \"https://www.uniontech.com/agreement/privacy-en\";",
"line_number": 996,
"rule": "S35",
"reason": "Url link | f82409d3b5"
}
]
} |
Add more logs for client. Log: More logs for client.
deepin pr auto reviewBased on the code in the project repository provided by the user and the user's requirements, generate new code or modify existing code. The output format is: |
|
Note
详情{
"calendar-client/src/widget/calendarmainwindow.cpp": [
{
"line": " url = \"https://www.deepin.org/zh/agreement/privacy/\";",
"line_number": 988,
"rule": "S35",
"reason": "Url link | 20e2eab189"
},
{
"line": " url = \"https://www.uniontech.com/agreement/privacy-cn\";",
"line_number": 990,
"rule": "S35",
"reason": "Url link | 4850a00dd7"
},
{
"line": " url = \"https://www.deepin.org/en/agreement/privacy/\";",
"line_number": 994,
"rule": "S35",
"reason": "Url link | 38d42f63bf"
},
{
"line": " url = \"https://www.uniontech.com/agreement/privacy-en\";",
"line_number": 996,
"rule": "S35",
"reason": "Url link | f82409d3b5"
}
]
} |
|
/merge |
Add more logs for client.
Log: More logs for client.
Summary by Sourcery
Add extensive debug and warning logging throughout the calendar client codebase to improve traceability and facilitate debugging
Enhancements: